<template>
    <div class="child">
        <h2>我是Child组件</h2>
        <h3>当前求和为: {{ sum }}--x：{{ x }}</h3>
       
    </div>    
</template>


<script setup lang="ts" name = "child">
import { ref} from 'vue';
import axios from 'axios';
let sum = ref(0)


</script>

<style lang="scss" scoped>
.child {
    background-color: #ddd;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 10px;   
}
</style>